# Find installed dc1394

# find include path
find_path(dc1394_INCLUDE_DIR
   NAMES dc1394/dc1394.h
   DOC "libdc1394 include path"
)

# find static library
find_library(dc1394_LIBRARY
   NAMES dc1394
   DOC "libdc1394 library"
)

set(dc1394_INCLUDE_DIRS ${dc1394_INCLUDE_DIR})
set(dc1394_LIBRARIES ${dc1394_LIBRARY})

if (dc1394_INCLUDE_DIR AND dc1394_LIBRARY)
   set(dc1394_FOUND TRUE)
   if (NOT dc1394_FIND_QUIETLY)
      message (STATUS "Found libdc1394: ${dc1394_LIBRARY}")
   endif()
else()
   set(dc1394_FOUND FALSE)
   if (dc1394_FIND_REQUIRED)
      message(FATAL_ERROR "Could not find libdc1394")
   endif()
endif()
